package kr.hkit.powerjava.chapter27;

public class Department {
	private int deptno;//부서번호
	private String deptname;//부서이름
	private int floor;//부서층
	//생성자만들기
	public Department(){}
	public Department(int deptno, String deptname, int floor) {
		super();
		this.deptno = deptno;
		this.deptname = deptname;
		this.floor = floor;
	}
	//출력(to String)
	@Override
	public String toString() {
		return String.format("%3s\t%5s\t%2s",
				deptno, deptname, floor);
	}
	//getter/setter 
	public int getDeptno() {
		return deptno;
	}
	public void setDeptno(int deptno) {
		this.deptno = deptno;
	}
	public String getDeptname() {
		return deptname;
	}
	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}
	public int getFloor() {
		return floor;
	}
	public void setFloor(int floor) {
		this.floor = floor;
	}
	
	

}
